package com.dongdong.bookstore.module.common.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 文件表
 * </p>
 *
 * @author chiangkai
 * @since 2021-11-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("file_store_relation")
@ApiModel(value="FileStoreRelation对象", description="文件表")
public class FileStoreRelation implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "ID 主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "文件Hash")
    private String hash;

    @ApiModelProperty(value = "文件名称")
    private String fileName;

    @ApiModelProperty(value = "文件Store")
    private String store;

    @ApiModelProperty(value = "文件大小")
    private Long size;

    @ApiModelProperty(value = "状态 0未上传1上传完成")
    private Integer state;

    @ApiModelProperty(value = "创建时间 创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;


}
